from django.conf.urls import url

from apps.goods import views
from .views import ListView, HotGoodsView, DetailView

urlpatterns = [
    url(r'^list/(?P<category_id>\d+)/(?P<page_num>\d+)/$', ListView.as_view(), name='list'),
    url(r'^hot/(?P<category_id>\d+)/$', views.HotGoodsView.as_view(), name='hot'),
    url(r'^detail/(?P<sku_id>\d+)/$', DetailView.as_view(), name='detail'),
    url(r'^browse_histories/$', views.UserBrowseHistory.as_view(), name='history'),
    url(r'^comment/(?P<sku_id>\d+)/$', views.GoodsCommentView.as_view(), name='show_comments'),
]





